package com.lzg.dimite;

/**
 * @Author lizhigang Date: 2019/9/8 22:07
 * @description:
 */
public class DimiteTest {
    public static void main(String[] args) {
              //普通开发
        Boss boss = new Boss();
        TeamLeader teamLeader = new TeamLeader();
        boss.commandCheckNumber(teamLeader);

        //如果是根据迪米特法则，最少知道原则，boss不需要和gongzi打交道，所以改造
        boss.commandCheckNumber2(teamLeader);
    }
}
